<?php
class CommController extends Controller
{
    private $view;
    private $model;
    
    public function __construct()
    {
        parent::__construct();
        $this->view     = $this->getView();
        $this->model    = $this->getModel('UserComm');
    }
    
    public function loadTop()
    {
        UserComm::init();
        $_loged_user = UserComm::getUserName();
        
        $this->view->assign('loged_user', $_loged_user);
        echo $this->view->getExecutedHtml('topbar.html');
    }
}